home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
PET
/
S-Super PET
/
(s)t3.d64
/
SPETRS232
< prev
next >
Wrap
Text File
|
2009-01-18
|
5KB
|
298 lines
CompuServe Page CBM-800
Technical Tips
1 Adding Sound to PET
2 6845 Video Controller
3 IEEE-488 Bus
4 DOS Versions
5 DOS 1.2 Problems
6 Relative record Bug
7 CBM 8032 & DOS 2.0
8 DOS 2.1 & 2.5 Bugs
9 2 Tape & Disk File Hints
10 Compiler Comments
11 Second Menu for More Tips
CompuServe Page CBM-510
Technical Tips
1) Digital Voltmeter Program
2) Number Juggling
3) Variable Flip-flop
4) Positioning for Data Reads
5) PET/CBM/VIC Dialect
6) Accessing the RS-232 Port
7) Weekday Character
8) Protecting Input Statement
Accessing the SuperPET
RS-232 PORT
The serial p%rt on the SuperPET
is a 6551 Asynchronous Communi-
cation Interface Adapter(ACIA)
manufacured by Commodore Semi-
conuctor Group.The ACIA uses a
single +5 volt power supply,fea-
tures an on-chip baud-rate gen-
erator and is capable of half
duplex or full-duplex operation.
Word length,number of stop-bits,
pariity generatin/checking and
baud-rate are all programmable.
The ACIA is sen by both Super-
PET microprocessors as 4 memory
locations at address(hexadexi-
mal) $EFFO-$EFF3.Input/output &
is done by writing to or reading
from these addresses as shown in
********************************
Table 1.SuperPET ACIA Memory Map
********************************
Address/WRITE Access/READ Access
$EFF0 Fill Transm. Unload Rec.
Data Reg. Data Reg.
$EFF1 Programmed Read status
Reset Register
$EFF2 Program Com. Read Command
Register Register
$EFF3 Program Read Control
Control Reg. Register
********************************
Table 2.ACIA Control Register
Programming
********************************
The Control Register is used to
select the desired operating
mode for the ACIA.Word-length,
number of stop-bits,clock cont-
rol and baud-rate are all pro-
grammed via the Control Register
as shown below.
Control Bits/Function/DataValues
7 #stop bits 0=1stopbit
6-5 set word 00=8 bits
length 01=7 bits
02=6 bits
03=5 bits
4 select 0=external
Baud-rate clock
1=Baud
rate gener
$0(Hex)=
Not Used
ControlBits/Function/DataValues
$1=50 Baud
$2=75
$3=110
$4=134.5
$5=150
$6=300
$7=600
$8=1200
$9=1800
$A=2400
$B=3600
********************************
Table 3.ACIA Command Register
Programming
********************************
The Command Register in the 6551
ACIA is used to control parity
generation/checking,receiver
echo and transmit/receive func-
tions as shon below.
CommandBits/Functions/DataValues
7-5 Set Parity xx0=Parity
Options Disabled
CommandBits/Function/DataValues
001=OddPar.
Xmit&Recv
011=EvenPar.
Xmit&Recv
101=Mark Par
Xmit/Recv
111=Space-
Xmit,Recv
Disbaled
4 Set Normal/ 0=normal
CommandBits/Function/DataVal
Echo mode 1=Echo
3-2 Xmit Cont 00=Xmit
disabl
No req
to sen
01=Xmit
enable
reques
disabl
reques
Command Bits/Function/DataValues
1 Recv Inter- 0=Intrpt
rupt Enable Enabled
1=Intrpt
Disable
0 Data Terminal 0=Disable
Ready 1=Enable
********************************
Table 4.ACIA Register Definition
********************************
Status Register is read-only.Its
format is outlined below:
Bits Functions & Values
0* 1=Parity Error 0=No Error
1* 1=Framing Error 0=No Error
2* 1=Overrun 0=No Ovrun
3 1=Recv Reg Full 0=Not Full
4 1=Xmt Reg Empty 0=Not Empt
5 1=No Data Carry 0=Carrier
6 1=Data Set not 0=Readd
Ready
7 1=Intrpt Req 0=No Req
* No Interrupt Request occurs
for these status conditions.